package view;

/**
 * Enumeration contains types of the logger filtering.
 * Logger can be filtered by IP (IP/port/direction), by PROTOCOL or can be in original form.
 */
public enum FilterType
{
	/**
	 * Without filtering
	 */
	ALL, 
	
	/**
	 * Filtering by IP/port/direction
	 */
	IP, 
	
	/**
	 * Filtering by protocol
	 */
	PROTOCOL;

	/**
	 * @return the string for the specified enumeration value.
	 */
	public String toString()
	{
		switch(this)
		{
		case ALL:
			return "All";		
		case IP:
			return "Ip";
		case PROTOCOL:
			return "Protocol";
		}
		
		return "";
	}
}
